package org.example.ch4;

import io.reactivex.rxjava3.core.Observable;

public class Main4 {
    public static void main(String[] args) {
        Observable.zip(
                Observable.just(1, 2, 3, 4, 5),
                Observable.just("a", "b", "c", "d", "e"),
                (item1, item2) -> item2 + "-" + item1
        ).forEach(System.out::println);
    }
}
